package com.example.bomc.dao;

import com.example.bomc.model.SysRole;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleDao {
    @Select("select r.rid rid, r.role_name roleName, r.role_desc roleDesc from sys_role r,user u where u.uid = #{uid} and r.rid = u.rid")
    List<SysRole> findByUid(Integer uid);
}
